package com.cxlin.cwanandroid.model.repository

import com.cxlin.base.model.api.BaseRepository
import com.cxlin.base.model.api.Result
import com.cxlin.base.mvi.UiEvent
import com.cxlin.base.mvi.UiIntent
import com.cxlin.base.mvi.UiState
import com.cxlin.cwanandroid.model.api.WanRetrofitClient
import com.cxlin.cwanandroid.model.bean.Navigation
import com.cxlin.cwanandroid.ui.home.viewmodel.ProjectTypeViewModel

/**
 *
 * @Author: chenxunlin
 * @Date: 2024/5/6 10:22
 */
class NavigationRepository : BaseRepository() {

    suspend fun getNavigation():Result<List<Navigation>>{
        return safeApiCall(
            call = {executeResponse(WanRetrofitClient.service.getNavigation())},
            errorMessage = "获取数据失败"
        )
    }

}